FUNCTION

integer.min

pure function min(value: integer): integer

Returns the lesser of this integer and another integer value; i.e. value if value is less than this integer, or this integer otherwise.

Parameters

  • value — the value to compare against this integer

Returns

the lesser of value and this integer.

Since

0.6.0


pure function min(value: big_integer): big_integer

Returns the lesser of this integer and a big_integer value; i.e. value if value is less than this integer, or this integer otherwise.

Parameters

  • value — the value to compare against this integer

Returns

the lesser of value and this integer.

Since

0.12.0


pure function min(value: decimal): decimal

Returns the lesser of this integer and a decimal value; i.e. value if value is less than this integer, or this integer otherwise.

Parameters

  • value — the value to compare against this integer

Returns

the lesser of value and this integer.

Since

0.6.0

© 2026 Chromia